package org.javaboy.business.controller;

import org.javaboy.business.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BusinessController {

    @Autowired
    BusinessService businessService;

    @PostMapping("/buy")
    public String buy(Integer userId,Integer commodityCode,Integer count) {
        return businessService.buy(userId,commodityCode,count);
    }
}
